import Layout from '@/layout'

export default [
  {
    path: '/business',
    component: Layout,
    children:[
      {
        path: 'cps/product/Add',
        name: '产品新增',
        meta: {
          title: "产品新增",
          noCache: true
        },
        component: () =>
          import('@/views/cps/product/add.vue'),
      },
      {
        path: 'cps/data-acquisition-monitoring/View',
        name: '数采监控查看',
        meta: {
          title: "数采监控查看",
          noCache: true
        },
        component: () =>
          import('@/views/cps/data-acquisition-monitoring/View.vue'),
      },

      {
        path: 'cps/equipment/Add',
        name: '设备编辑',
        meta: {
          title: "设备编辑",
          noCache: true
        },
        component: () =>
          import('@/views/cps/equipment/add.vue'),
      },
    ]
  },
  {
    path: '/user',
    component: Layout,
    hidden: true,
    redirect: 'noredirect',
    children: [{
      path: 'profile',
      component: (resolve) => require(['@/views/system/user/profile/index'], resolve),
      name: 'Profile',
      meta: {title: '个人中心', icon: 'user'}
    }, {
      path: 'notify-message',
      component: (resolve) => require(['@/views/system/notify/my/index'], resolve),
      name: 'MyNotifyMessage',
      meta: {title: '我的站内信', icon: 'message'},
    }]
  },
  {
    path: '/dict',
    component: Layout,
    hidden: true,
    children: [{
      path: 'type/data/:dictId(\\d+)',
      component: (resolve) => require(['@/views/system/dict/data'], resolve),
      name: 'SystemDictData',
      meta: {title: '字典数据', icon: '', activeMenu: '/system/dict'}
    }
    ]
  },
  {
    path: '/codegen',
    component: Layout,
    hidden: true,
    children: [{
      path: 'edit/:tableId(\\d+)',
      component: (resolve) => require(['@/views/infra/codegen/editTable'], resolve),
      name: 'InfraCodegenEditTable',
      meta: {title: '修改生成配置', activeMenu: '/infra/codegen'}
    }
    ]
  },
  {
    path: '/business',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'cps/product/Add',
        name: '产品新增',
        meta: {
          title: "产品新增",
          noCache: true
        },
        component: () =>
          import('@/views/cps/product/add.vue'),
      },
    ]
  },
  {
    path: '/business',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'cps/equipment/Add',
        name: '设备新增',
        meta: {
          title: "设备新增",
          noCache: true
        },
        component: () =>
          import('@/views/cps/equipment/add.vue'),
      },
    ]
  },
  {
    path: '/warning',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'configuration/Add',
        name: '配置新增',
        meta: {
          title: "配置新增",
          noCache: true
        },
        component: () =>
          import('@/views/warning/configuration/add.vue'),
      },
    ]
  },
  {
    path: '/warning',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'cps/warning/rule/index',
        name: '规则配置',
        meta: {
          title: "规则配置",
          noCache: true
        },
        component: () =>
          import('@/views/warning/rule/index.vue'),
      },
    ]
  },
]
